package com.clinic.entity.gui;

public class GuiUserLogin {

	private long loginId;
	private String username;
	private String password;
	private String oldPassword;
	private String confirmPassword;
	private GuiUser user;
	
	public boolean isAvailable() {
		return (user != null && user.getUserId() > 0L);
	}
	
	public long getLoginId() {
		return loginId;
	}
	
	public void setLoginId(long loginId) {
		this.loginId = loginId;
	}
	
	public String getUsername() {
		return username;
	}
	
	public void setUsername(String username) {
		this.username = username;
	}
	
	public String getPassword() {
		return password;
	}
	
	public void setPassword(String password) {
		this.password = password;
	}
	
	public String getOldPassword() {
		return oldPassword;
	}

	public void setOldPassword(String oldPassword) {
		this.oldPassword = oldPassword;
	}

	public String getConfirmPassword() {
		return confirmPassword;
	}

	public void setConfirmPassword(String confirmPassword) {
		this.confirmPassword = confirmPassword;
	}

	public GuiUser getUser() {
		return user;
	}

	public void setUser(GuiUser user) {
		this.user = user;
	}
	
}
